package com.demo.morning;

/**
 * @ClassName Student
 * @Description TODO
 * @Author tianqinglong
 * @Date 9:32 2022/7/11
 * @Version 1.0
 **/
public class Student {

    private int id;
    private String name;
    private Integer age;
    private String password;
    public int getId() {
        return id;
    }

    public Student(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Student(String name, String password) {
        this.name = name;
        this.password = password;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", password='" + password + '\'' +
                '}';
    }

    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
